package es.ada.pract03.eje2.auxiliares;

import com.google.common.base.Predicate;

public class PredicateEsIgualA<T extends Comparable<? super T>> implements Predicate<T> {
	T objetoAComparar;
	public PredicateEsIgualA(T entrada) {
		objetoAComparar=entrada;
	}
	@Override
	public boolean apply(T arg0) {
		
		return objetoAComparar.compareTo(arg0)==0;
	}

}
